package com.aloda.ojsandbox.sandbox.impl;

import com.aloda.ojsandbox.anno.SandboxStrategyConfig;
import com.aloda.ojsandbox.pojo.dto.ExecuteCodeRequest;
import com.aloda.ojsandbox.pojo.dto.ExecuteCodeResponse;
import com.aloda.ojsandbox.pojo.enums.CodeSandboxLanguageEnum;
import com.aloda.ojsandbox.pojo.enums.ResponseEnum;
import com.aloda.ojsandbox.sandbox.CodeSandbox;

/**
 * @Author aloda
 * @Date 2025/5/1 14:15
 */
@SandboxStrategyConfig(sandboxLanguageType = CodeSandboxLanguageEnum.C_PLUS_PLUS)
public class CppCodeSandbox implements CodeSandbox {

    /**
     * 执行代码
     *
     * @param executeCodeRequest
     * @return
     */
    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) {
        return ExecuteCodeResponse.error(ResponseEnum.CODE_SANDBOX_DISABLED);
    }
}
